The invention provides compounds of Formula I:(see formula I)and pharmaceutically acceptable salts and esters thereof. The compounds, saltsand estersmay be used in modulating the activity of androgen receptors or for treatment,prevention oramelioration of one or more symptoms of androgen receptor mediated diseasesand disorders.