adding enviroment to registered instnaces