kryo is unable to serialize proto classes, so added a workaround