changed MAX HOSTS to 10