resolve json serialization problems