only set basePort when you are actually going to use it
Merge pull request #52 from wraithan/global-port

only set basePort when you are actually going to use it