added env detection for coding w/o hardware