changes to environment

moved check environment to different place
also added enhanceparamters which takes form envrioemtn.global etc