make some classes serialisable