add verfication of the output file