setting correct environment