added duplicate path checks