improving path processing