initialization now based on file being read