add hack for CloudPickleSerializer