add output files' check