more concise url parsing