add class version of heartbeat