remove native refs