add thread capability and patch targeted projects