registers anonymous middleware with a sequence number