break up long line
work around changed interface
restore global aggtype