need to get it working with couchdb 1.5