update distribute script