catching parsing exceptions