fork of debit from https://code.google.com/p/debit/