should be NULL in copyfile
work towards refactoring proxy handling