The disclosure provides compounds of formula I, including their salts, as well as compositions and methods of using the compounds. The compounds are ligands for the nicotinic 7 receptor and may be useful for the treatment of various disorders of the central nervous system, especially affective and neurodegenerative disorders.