how to manage multiple environments