fixed bug in serversocket that caused server not to start