fix deploy script issues