better process to get folders