make entity extraction optional for performance reasons- this is pretty hacky and should be refactored