Improved PATH asignation