multithreading: QThreads have been added to process processMessages() function, however this is not what we want in the end - this will be done in different way