make deployment script smarter
fix some lingering MDS references