more complex parsing of the multiline steps