updated for couchbase 2.0