add worker thread which inherits thread