id_generator moved to clean_sync
onBeforeAdded, onBeforeRemoved changed to onBeforeAdd, onBeforeRemove