replace hostname -f with server var