slighty changed stream header