writing header to each segment upon create() call