broken attempt at multithreaded socket handler/gui communication