can register a first middleware