very preliminary heartbeat functionality