fixed readFileSync