now I realized readFile was asynchronous