added ideas for path search