add a check for the ENV