corrected FILEPATTERN; added future features as wishes