add try catch in Parser