added dumping the file