do_heartbeat: beginning