Compounds of the formula useful for treatment of disorders of the dopaminergic system, such as schizophrenia, schizoaffective disorder, bipolar disorder, Parkinson's disease, L-DOPA induced pychoses and dyskinesias, Tourette's syndrome and hyperprolactinemia and in the treatment of drug addiction such as the addiction to ethanol, nicotine or cocaine and related illnesses.