fix file reading, implement fs.stat/fs.lstat
hide internal stats mess better