rewrite all the API to be RESTFull but command line client have not
upgraded yet