terra updates
massive rewrite of GA code generation