add config option for heartbeat