add hostname argument to sample server