fixed plots to work with new JSON format