fixed stream_t except for formatting; will come soon