fixed serialization and now it works