add in ability to specify the environment