updates for file  IO