more functions for templateinfo