adding parsing to load_stream