use null(\0) as heartbeat msg