add capability to detect hagen