multithreaded the loader