nested file call back