somthing about threads, the mutex is still missing