quick and dirty serialization