dealing with json serialization issues