removed env vars from detect