add .unique to pending_invoices