updating module environments