initial add for convex_mp.cpp