replacing distribution script