[bugfix] read write raw -> close file