switched to getEnv for compatibility with the older version of GHC on my laptop