use file_exist? instead of fs.file.stat