add missing files for threads