made island model running on multiple threads