loading files on another thread