simplify readFile