path validation by index added and problem 1 of 2 appears to be solved