implement approximately non-natural loop detection and add header message