normalizing request path
organized some comments