added echo to server
implemented server timeout (probably)