changed it so config happens right after reading data rather than by reading in from file - testing when file creation occurs