incorporate reworked bt_deletekey into file I/O version