loading datastream corectly