surround parsing with a seperate try and catch