record & heartbeat