added DEBUG_HACK for template introspections