inter chain algorithm updated and debugged + active plan updated