added use case API and more jinja tinkering