added flag for subdirs