added abort request
updated url rewriter
added test for capture groups