add getblockhash(index) method