code cleanup, improved pathfinder
reorganizing/refactoring utils
fix import statements