a quick implementation of collecting metadata as a side effect of printing