attempt to control parllel threads better
Merge branch 'multicorewindows'