Revert "not working: threaded script"

This reverts commit 6961ff66807288c2f6a77f461ede9c7edb0ad572.