add a scanner for scanning class and method in a dir