add static file auto support