add template printing to test rig