improved main debugger; read every byte from socket instead of every line; better server performance