added option to include format line in output