added modifyDatastream