got a working SK and SM serialization