added endTimestamp to data stream