wrote couchapi using vows