improve env part for xml