validation file and output