an attempt to work around aws json dump limitations