modfied writestream setProperty