add and modify environment