refactored mining fns; now store route data in  slots [ci skip]