check for existence of removefiles