better request path processing