added undo writeoff transaction
added API changes