add first output file support.