check environment