replace readFile async with readFileSync in order to give the file name