some state checks in RoundRobin, context switching added