use tonumber()
read couchdb's revision header