add file resource writing