only output something if asked to, no longer requires an input file