only set basePort when you are actually going to use it