fixed serialization
fixed ids of json objects