passing environment into options of all endpoints, removed leading baseURL argument