TODO updated
moved utility functions where they belong
log environment variables on startup
allow environment variables in config file