flush events