attempt to fix scoping bug in aggregating funs
comment marking (perhaps) unneeded substitute()
auto manual update