adding dir scanning