change config to use env variables