t3: add middleware to the project