find extension for more types of paths