added finding of bandits on a path, other improvements