added socket re-use to server and continued work on client