changed to using hostname config