init template system