made it multithreaded again