now able to handle uri segment replacements for restful urls