add env-chosing logic