before using subdirs
added unittest