main: retrieve config from env vars