remove debug code
added some getter functions to environment