adding singleton to write all output graphs to the same output file