Master account reversal pvy

port of account reversal module to new api
is the local variable useful?