fix read_stat hopefully, add better unmount logic