refactor(files) add Promise