change read_until_pattern to read_until according to performance recommendation..