events position is now atomic
Implemented priorities for events