pass cogroup opts explicitly, handle cogroup-inner