added multithreading for events