fixed capitilization of checkEnv