moving the conistency checks for updates and deletes to library, hopefully got the...