change command parsing function to parsed_cmd's member function
one line cmd add cmd number to 4096, modify litte code-style