verfication script now flushes output to file