initial working commit, need to tweak weighting of paths