merge functions into table, string, math, move some stuff into geom, fix some crashes