added http rpc interface