more tweaks; no errors, but threads do not yield properly