support for Class.extend