fix
serializing to json improved