added new template callbacks