working on CouchDB spec