forgot to change pathgen.checkRoute OOP