fixes for alternate ports