transition configuration to env variables

please review @danrschlosser 
`None` is implied here, so it can be omitted.