deploy script and tweaks