wip, bad: unit testing, fix voucher, outpayment