dump also filename (TODO revise to exact output matching)