starting to add an html interface and json-rpc API