removed Multithreading
changed to Eventbased messaging