removed deprecated thread.cpp