added simple serialisation of spo maps