simple topic detection for pipeline