working version with detection of all workers and running multiple works in single process.