update serialization of numbers as well