giveFile: first stub, still problems with retaining state