add url pattern check