non working almost implementation of bitcoinj record