register native routines