make client serialisable