added fs.exists support