updated distribution script