WIP:simplify the UDAF interface