added support for multiple environments