check environment variables