changed config to use env not hostname