static middleware