cleaning up uri template