updated config to use env variables