change the mode-detection contract so it's a list and can signal whether the first line needs to be chopped or no.