fixed addPaths