added support for changing env in every request