add a readFile method