generated models for all function uses cases now compile with templates