new funcs: filter_list, get_subdirs