core: first pass at using use fs.stat data.