adding RThread SwingWorker for parallel code (forgotten from last commit)