get reading files working