debug memory issue + plot reso and fit results