a working deploy script
better deploy script