better stream chunk handling, clean tabs