The present invention relates to compounds of general formula I, wherein the group R1, R2, X, Y and z are defined as in claim 1, which have valuable pharmacological properties, in particular bind to the AMP-activated protein kinase (AMPK) and modulate its activity. The compounds are suitable for treatment and prevention of diseases which can be influenced by this receptor, such as metabolic diseases, in particular diabetes type 2.