basics of tok_stream module