read files from promise