some environment check