added pickling before uploading to cluster