changes to make this API-compatible with eal's key value store (at least in URLs, not in output)