add middlemare for static files