double buffering + delete dump file