url pattern and misc. formatting