add writefile stream