added promises based file read as getFileContents