refactor level/couch sync for clarity