handle port change in upgrade from 3.5 to 4.0