debug credit&debit functions