clean up deploy script
this is probably hideous