fixed unc write errors