updated distribute script.