adding graceful handling when cannot locate text section