got metadata into logging. refactored env into a util class for later use
logging is good enough for now
Merge branch 'master' into logging_inv
improved key=value parsing to handle quotes