more fctns in Caffe wrapper