terpGenerator needs mutable guts