added field loacl_id to decouple local safety record with remote safety that is pointed by id