integration helper sets up all the environment state