preparation for simple templates