implement limit/streamlimit