rewrite a better deploy script.