adapt paths