handle the new data structure and update dist