set up the environment