delay middleware registrations