check_contiguity still needs some serious love