add isFile check
merge latest
update package.json
file mode