3int: template fixes