added support for parent classes