editing stream_init from the mapper side