allow choose type of repository