working with remote file