multithreading working, after a fashion