add dumping to disk