helper function for mktx, payto