09-23-13 added payment rewrite