add priority to event model