add dump and close