fix listing of files and outputs.