use the proper functions for registering/loading