fixes #2 by adding smarter url parsing
Merge pull request #3 from wilmoore/better-url-parsing

fixes #2 by adding smarter url parsing