writeStream open event added