update of the block_detection patch