added a handler for handling posted invoices