working deploy script