fixed ostruct to use tmpl rather than yaml var