added createTemplate and legacy friendly dataset handling