checks subdir