add global identify function.

dependent on #369 getting merged