ported to couchbase