get main nodes
calculate break costs
sidenote map
break cost
working
fix