deepcopy cloning rules instead of accessing them directly, so temp rules changes do not persist beyond the point where they are needed