added basic environment detection