finally got the delete file callbacks working