simple double buffer save file handler