fix routing to logs and invoices