investigating adding the AddCorrFunc, think I need something at the C++ layer
(#297)