changed everything to use Path instead of File
mit