add support for fields on subclasses