add streaming to file