i realize it's a debug thing, but any reason not to use a template here?