get config from env variables or config file