master do_register extern