added thread priorities