cpickle related bugs