common path detection