serialization kinda working