change syntax for detecting environments