Multithreading

trying to seperate the data sending from the main thread