switch to threads /issue #167