parse envs; change current env