added support for overriding priority