add scan filesystem function. NOT TESTED