reading envs from xml