conditional heartbeat support

Signed-off-by: Stephen Gran <steve@lobefin.net>