add schema clone for case with getting schema from register