lastValidPath added