added error parsing between steps