added support for URL prefixes (github issue #5)