Playing with middelwares