fixes for couchdb running behind local-tld