Reimplementing filesstem layer