deployment script fixes