added static middleware