refining yaml template