fs: add missing code from last commit