taking envs from user