handle heartbeat requests