added better environment fail fast