add modules back to environment