deploy script fixes