registering native routines