add prority for onEvent