make the package listen to both prePersist and preUpdate