modify to multi thread, take the cmdloop and ethproc as the thread.