updated clustering api for tracking original instance id