begin implementing fs.stat