adding support for accrual accounting