added legacy class name auto wewrite