fix some deployment issues