add remote file write, delete functions