wip adding fields to a template