add - logging to lock removal.
fixes to revert functionality.