main script changed so that it can read repairman also for operated machine