add options to createWriteStream