segment in dirs