improve ns comment
add generative uri wildcard placeholder swapping and refactor