add hash method to distribute distribute_sync.py