v 0.30d; moved env detection to local_settings to fix a bug