support for saving TAIL program in an output file