add scenario checking for output file