select folders properly