Revert "Revert "Revert "add a identify function"""

This reverts commit d9d4ba610a096cad8fb008fc25fdecaba4730e47.