teaks to thread code to unlock deadly embrance between signals and threads (include files)