client heartbeat and refinements