add unregisterAllClass and deleteAllObjects