add file write for file dest