implemented get_mapped_id
insert properly oleguid, detecting better when val is a string