add: middleware exceptions