check environment via environment variable