fix static bug
add some more static file handling utils