move parser error catch to gui