i/o threading fix
Merge origin/prolog1 into prolog1