mapping remote & local ids for events