added EventWrite construct