+ test
+ test
moar tests and error checks

also getenv()