improved checkBlock, still chasing bugs