added Assets to middleware