add exception catch when parsing