added getblockcount