use fs.exists instead of findByPath