provides middleware registrar