emit events flag