setting env on user change