further cleanup of max_files