specify that it is middleware