removed n_files from config, fixed accompanying bugs