multithreading removed for now