added static middleware so templates can go in