reworked the identifiers, that is added a global hash_map. TODO: make function.cpp compile and remodel the reference model.