udpated config to use env vars and single user mode