debug saving data issues