added support for the priority enum