restore to merge caffe