first version of gh pit serialisation