added ability to set custom pattern for url params