use protocol 2 in CloudPickle