improve static file. remove StaticException