transition configuration to env variables

please review @danrschlosser 
let's do a separate object.