added heartbeat api