refactoring, exposing more RPC commands from bitcoind