Sync cleanup
Basic plugin & events support