adding query option for folders