still need to fix emr rules