environment checking