work around file handling, removeAll for files doesn't work