improve static resource support