add id to rules in model sharing