fixes and added server port to configuration