refactor to use heartbeat from API