rewrite, using jsoncpp, not usefull