added workaround for root folder detection