opt
add: basic command support.
add: basic REST
fix: some bugs.