Detecting env