environment check script