wip - added latte and template factory