moved class modifications into a copy of class in directory class