added support for system priority