add dump,load,mkpkg and implement mkpkg