re_implement md operation in a quite neat way,blkidx also ok,but need test