fix rotation, set thread priorities