not available by default on some systems, switching to getenv()