debug the write file