more updates to register()

more updates to register()