resolve scheduler threading issues