add 'print' option to print file or not