rm close_cursor; add transaction; stop patching cursors