deregister_instances and register_instances methods return True/False/None