support for multiple endpoints at enviroments