use setters instead of immutable
introduced FilenameFilter to replace checkFilesPattern