correcting loadFilesFromAddedDirectories method