add graceful failing for highlighting/unhighlighting