make legacy class extend current class