adding option to control output file size