fix keepalive - dont rely on $HOSTNAME