chagnging environment detection variable to environment
fixing /users