add ability to check environment