fix a few deployment issues