have to convert some keys and values to strings to make sure that the hash can be serialized