simplified event writing