transition configuration to env variables

please review @danrschlosser