save before working on thread memory issues