updated serialisation to support superclasses