output filename based on input foldername