added server port to constructor