initialize $agencyMainId