added support for parsing urls