move shape_func package to mf project