added getblockhash(index) method