more flexible and better url pattern for static resources