almost using bitcoinj properly