update flask for new products format