added ability to create E or R datastreams