improve static file handler