correctly set up ignore_files and ignore_folders