Starting and running your own company in Thailand as a foreigner requires navigating the visa and work permit process. Founders often underestimate this step – being an owner or director doesn’t exempt you from needing legal work authorization. In fact, every foreigner “working” in Thailand must have the proper visa and work permit before engaging in business operations. Understanding the available paths is imperative to avoid legal pitfalls and costly delays. This article explores three routes for foreign founders/directors: the standard Non-Immigrant “B” visa with Work Permit, the BOI-promoted company route, and the SMART Visa program. We’ll compare their requirements, timelines, capital/staff rules, and highlight how to stay compliant under each. By the end, you’ll know which path fits your venture and how to steer clear of common mistakes. Let’s dive in.
Standard Route: Non-Immigrant “B” Visa + Work Permit.
Most foreign SME owners in Thailand follow the traditional path of obtaining a Non-Immigrant Category “B” visa (Business visa), then a Work Permit, and finally extending the visa to a one-year stay. This route is tried-and-true but comes with strict requirements:
- Initial Non-B Visa: You must first secure a Non-Immigrant “B” visa from a Thai embassy/consulate abroad. Typically, you apply with an approval letter (WP.3) from Thailand’s Ministry of Labour (your company in Thailand files this to show a job offer). The Non-B visa is usually issued for 90 days single-entry (fee ฿2,000). This 90-day window is used to enter Thailand and complete company setup and work permit formalities. Once in Thailand, you can convert it to a 1-year extension of stay.
- Company Requirements: To sponsor a work permit, your Thai company must meet financial and hiring thresholds. The standard rule is ฿2 million in paid-up capital per foreign work permit, and at least 4 Thai employees per foreigner, registered in the social security system. For example, if you, as a founder, are the only foreign employee, your company needs at least ฿2 million capital and 4 Thai staff on payroll; hiring a second foreigner would require ฿4 million capital and 8 Thai employees, and so on. There is also a general cap of 10 work permits per company (beyond that requires special approval or BOI status). These rules ensure foreign-run firms also create local jobs.
- Work Permit Application: With your Non-B visa in hand, the onus is on your company (as the employer) to apply for your Work Permit at the Department of Employment (Ministry of Labour). You cannot legally start working (even as a company director) until the work permit is approved, which typically takes ~7 business days in Bangkok. The application requires an array of documents from the company and the foreigner. Officially required employer documents include the company registration certificate, list of shareholders, VAT and tax registrations, financial statements, office location map, employment offer letter stating your position and salary, and proof of Thai staff employment (social security filings). The foreign applicant must provide photos, a medical certificate, education certificates, and passport copies, among other forms. Essentially, you must prove the business is a real, active company that can support a foreign worker.
- Initial Work Permit & Extension: Once the work permit is issued (you’ll receive a work permit booklet or card specifying your role and company), you can apply to Immigration to extend your stay from 90 days to 1 year. Immigration will verify that all conditions are met: the company’s paid-up capital, the 4:1 Thai-to-foreigner ratio (often they check the latest 3 months of Social Security filings to confirm Thai employees), and that the company has started operations (e.g. evidence of revenue such as VAT filings or, if applicable, documents like contracts, purchase orders, or industry-specific documents). If everything checks out, you receive a 1-year extension of stay tied to your company and work permit. This visa can be renewed annually, provided you maintain the requirements each year (we’ll cover compliance tips later).
- Ongoing Duties: Under the standard scheme, remember to report your address to Immigration every 90 days (90-day reporting) as required by Thai law. The work permit must be renewed or extended alongside the visa (usually annually). If you change your job title, company address, or any particulars, you must update the work permit. Also, never work outside the scope of your permit (e.g., performing jobs not listed, or working for a different entity) – doing so can incur penalties. The law imposes fines and even imprisonment for working without a permit or violating its terms. As a company director, ensure you hire at least the minimum Thai staff and keep up with corporate filings (annual financial statements, tax payments, etc.), because Immigration will ask for these at each renewal. This path requires significant upfront investment (capital and hiring) and paperwork, but it is the default route for most businesses not eligible for special schemes.
Work Permit for Founders & Directors?
Get “Eligibility + Company Reality” Aligned.
A work permit isn’t just paperwork. Your role, company structure, and ongoing compliance trail must line up — or renewals turn into a negotiation.
- Role & scope: director/founder job description that matches what the company actually does
- Company readiness: capital, office footprint, payroll/SSO, tax filings, operational evidence
- Renewal-proof setup: avoid “fix it later” gaps that surface at extension time
Start with city + how many work permits you need so we route you to the right specialist fast.
BOI Company Route: Work Permits via Thailand’s Board of Investment
For startups or projects in certain industries, obtaining a BOI promotion can be a game-changer. The Thailand Board of Investment (BOI) offers incentives to qualified businesses (e.g., tech, manufacturing, export, innovation sectors) – one key perk is an easier process for visas and work permits for foreign executives and experts. If your new company is “BOI-promoted,” the arduous requirements of capital and Thai hires do not apply in the same way. In other words, a BOI company can sponsor foreign work permits with no 4:1 local staffing ratio and no ฿2M capital per head rule. This is extremely advantageous for foreign founders, especially in tech startups, who may not initially need (or afford) 4 Thai employees just to hire themselves. Here’s how the BOI route works:
- Obtaining BOI Promotion: First, your company must apply for and receive BOI promotion in a qualifying business category. This involves submitting a detailed business plan to BOI, meeting specific criteria (e.g., minimum investment, Thai shareholding rules depending on activity, etc.), and getting approval – a process that can take a few months and requires careful preparation. Once approved, you receive a BOI certificate and project code.
- One-Stop Visa and Work Permit Service: BOI companies use a special system called the Single Window and the One-Stop Service Center (OSSC) for visas and work permits. Instead of dealing separately with Labour and Immigration offices, you (or your agent) go to the one-stop center (in Bangkok or eligible provinces) where officers from BOI, Immigration, and Labour are co-located. The process is streamlined and fast – BOI-supported visa/work permit approvals can often be done within one day once your paperwork is in order, a stark contrast to the multi-week standard process.
- No Local Hire Ratios: Under BOI, you are exempt from the 4 Thai per foreigner quota and the paid-up capital rule. This means as a foreign founder, you can immediately get a work permit to run your BOI company even if you have zero Thai employees initially (though you’ll likely hire as your business grows). BOI companies also aren’t limited to 10 foreign work permits – the BOI will approve roles based on the project’s needs. Essentially, BOI treats foreign expertise as an asset, not something to tightly cap. Do note, however, that BOI expects you to bring in skilled talent – typically, foreigners hired should be professionals with degrees and experience relevant to the project. This is usually your case as a founder or high-level executive, so it’s not a problem.
- Visa & Work Permit Process with BOI: The mechanics differ slightly from the standard route. Upon BOI promotion, your company must register on BOI’s e-Service (Single Window system) to manage work permit and visa requests. You then create a position in the system for the foreigner (e.g., Managing Director) and submit the foreigner’s qualifications for approval. For a founder, this is straightforward – you’ll approve your own position. Once BOI okays the position and person, they issue an invitation letter that you use to get a Non-Immigrant “B” visa from a Thai consulate (often a special BOI-type Non-B visa). After entering Thailand, you go to the One-Stop Center with your documents to receive a one-year visa stamp and work permit card on the spot. The work permit may be issued as a digital e-Work Permit linked to your passport, instead of the old blue book – convenient and always accessible.
- Maintenance and Renewals: Your visa and work permit under BOI are typically issued for 1 year at a time (in some cases, 2 years) and can be renewed through the one-stop center annually with minimal fuss, as long as your BOI promotion remains active and your project is making progress. You still need to do 90-day immigration reporting (unless you qualify for extensions or use the BOI one-stop to report). Family members get Non-Immigrant O visas (as dependents), which can be extended yearly as well. (Unlike the SMART Visa, dependents of BOI visa holders do not automatically get work rights – they would need their own work permits or a SMART spousal visa, etc.) The real advantage is that you don’t have to scramble to show Thai employees or capital at immigration – BOI status is proof enough of your business’s legitimacy.
- Other BOI Benefits: Beyond visas, BOI companies often enjoy perks like corporate tax holidays, 100% foreign ownership, and permission to own land, depending on the promotion. For a founder, this means you can fully own your Thai company (no need for a 51% Thai shareholder) and focus on growth. Keep in mind though, BOI companies must meet their promotion conditions (like investing a certain amount, achieving set targets, etc.). Failing to do so could jeopardize your BOI status, and by extension, your visa/work permit facilitation. So, while the BOI route eliminates the need for 4 Thai staff and high capital for visa purposes, it comes with its own commitments – choose this path only if your business plan aligns with BOI criteria and you’re prepared to follow through on the project.
SMART Visa Path: High-Tech Founders’ Fast-Track
Thailand’s SMART Visa program is a relatively new initiative designed to attract top-tier talent, investors, and entrepreneurs in targeted “future” industries. For foreign startup founders in tech, deep tech, or innovation sectors, the SMART Visa can be an ideal solution, offering up to 4 years of residency with built-in work authorization – no separate work permit required. This visa essentially bundles your permission to stay and work in one, with a host of perks. Here’s what foreign founders should know:
- Who is it for? SMART Visas are limited to specific categories: “T” (Talent) for experts in science/tech; “I” (Investor) for major investors; “E” (Executive) for senior managers; “S” (Startup) for entrepreneurs starting a new venture; and an “O” for their spouses and children. The Thai government has defined 13 targeted industries (sometimes called the S-curve industries) that qualify – these include next-gen automotive, smart electronics, biotech, medical hub, digital, automation & robotics, renewable energy, etc. Essentially, if your startup is in a tech or innovation field that Thailand wants to promote, you could be eligible for SMART.
- SMART “S” for Startup Founders: Most foreign founders will apply under the Smart S (Startup Entrepreneur) category. To qualify, you need to either be in the process of establishing a startup in Thailand or already have one. The criteria for Smart S have been updated to be more flexible in recent years. Generally, you should plan to or have incorporated a company in one of the targeted industries, own at least 25% of that company or hold a director position, and have at least 600,000 THB in funds (which must be deposited in a Thai bank or your home country bank for at least 3 months) You must also carry health insurance covering your stay. If you haven’t set up the company yet, you can initially get a 6-month or 1-year Smart Visa to come explore and incorporate – but you’ll need to show participation in a recognized incubator/accelerator program or a joint venture with government endorsement to prove you’re a genuine startup entrepreneur. Founders who have already established their startup (and gotten certification that it’s in a targeted sector, e.g., via the National Innovation Agency or DEPA) can get a Smart S visa up to 2 years. After the initial period, if you meet the milestones (such as continuing business operations, possibly hiring a modest number of employees, or maintaining your funding – e.g. earlier rules required hiring at least 3 Thai employees within the first year for extension), you can extend the Smart Visa for additional terms.
- Application Process: Unlike regular visas, you don’t just apply at an embassy – you first apply for a Qualification Endorsement from the Smart Visa Unit in Thailand. This is done online through the BOI’s Smart Visa portal. You’ll submit detailed documents proving you meet the criteria (business plans, financial evidence, credentials, etc.). An inter-agency committee reviews your application (involving BOI and relevant agencies for your industry). They aim to process endorsements within 30 working days. If approved, you'll receive an endorsement letter. With that in hand, you can obtain the Smart Visa sticker at a Royal Thai Embassy/Consulate or at the One-Stop Center in Bangkok (or EEC office in Chonburi). The visa fee is ฿10,000 per year of validity.
- After You Have the Smart Visa: You’re set! You can run your company or project without a work permit, as long as you stick to the field and role that was endorsed. You’ll only need to do annual immigration reporting instead of every 90 days. Your spouse and children get “Smart O” visas, allowing them the same stay duration; your spouse can work in Thailand without a permit (except in restricted professions) – they just need to notify the BOI of their employment details. No more worrying about a separate dependent visa extension every year, etc. One thing to note: Smart Visa holders are not subject to the 4 Thai employee rule at all, and if you later decide to hire other foreigners, those individuals could either use Smart Visas themselves or you could switch to sponsoring them via a work permit (with your company likely needing to then meet the usual requirements or have BOI status). In practice, many Smart Visa startup founders use the program’s initial period to grow the company, and later on, if the business scales, they might transition to a BOI promotion or standard work permits for additional staff.
- Limitations: The SMART Visa’s benefits come with strict eligibility. It’s not available for general trading businesses or small-scale services outside the targeted sectors. You really need to be in an “innovation-driven” field. Also, income or investment requirements can be high for some categories (e.g. Smart T requires a THB 100k/month salary for experts; Smart I requires a THB 20 million investment in tech companies; Smart E needs THB 200k/month salary plus 10 years of experience). For startups, the financial requirement (600k baht savings) is more manageable, but you do need a credible business plan and ideally some support from a Thai incubator or agency to strengthen your application. Approval is not a given – many applicants go through revisions or additional queries from the committee. The Smart Visa Unit may ask for clarifications or more documents during the process. And once you have the visa, you must continue to meet conditions (e.g., if you stop working in the designated company/industry, or fail to establish the startup as planned, your visa can be revoked). So, use this route only if you genuinely fit the profile of a high-tech founder or investor, and be prepared to show results.
Key Benefits: The SMART Visa confers broad benefits that make life easier for foreign founders and their families:
Smart Visa Privileges: Thailand’s BOI and Immigration guidelines highlight that Smart Visa holders enjoy a longer stay and fewer hurdles. Notably, the visa is valid for up to 4 years (for T/I/E categories, or 1–2 years for startups) without needing yearly renewals, no separate work permit is required to legally work (the visa itself serves as work authorization), 90-day immigration reports are reduced to yearly check-ins, no re-entry permit is needed (you can travel in and out freely), and spouses and children are allowed to stay in Thailand; the spouse can also work legally without a work permit. These are huge advantages – for instance, your co-founder's spouse could help in the business without extra paperwork, something not possible on a dependent visa under the standard route.
Comparison of Paths: Standard vs BOI vs SMART
Each path has pros and cons. Below is a side-by-side comparison of key factors for foreign founders/directors considering these options:
| Factor | Standard Non-B + Work Permit | BOI-Promoted Company | SMART Visa (Tech / High-Value) |
|---|---|---|---|
| Eligibility |
Any legitimate Thai company.
Thai- or foreign-majority, but must meet 4 Thais + ฿2M capital per foreigner to support WPs.
|
Company-level eligibility.
Must be in a BOI-promoted sector (tech, export, manufacturing, etc.) and pass BOI project/investment screening.
|
Individual-level eligibility.
You qualify personally as Talent / Investor / Executive / Startup in targeted industries with required income, funding or assets.
|
| Initial visa term |
90-day Non-B.
Issued by embassy, then converted inside Thailand to a 1-year extension of stay after WP process.
|
90-day entry → 1-year.
90-day visa using BOI invitation, upgraded at One-Stop to a 1-year BOI visa on arrival.
|
Up to 4-year visa.
Talent/Investor/Executive can receive up to 4 years up front; startup tracks usually 6 months–2 years initially.
|
| Work permit |
Required.
Classic Labour Ministry WP, tied to employer + job title. Issued after company setup and Non-B.
|
Required but streamlined.
Processed with the visa via BOI’s One-Stop Center – often same day or next day after position approval.
|
Waived.
SMART Visa itself authorizes work in the approved field; no traditional WP book, just registration in the system.
|
| Local hiring & capital |
Rigid 4:1 rule.
4 Thai employees + ฿2M fully paid-up capital per foreigner (often 2 Thais/฿1M if married to a Thai). VAT, tax and social security must be active.
|
Project-driven, no 4:1.
No generic Thai-to-foreigner ratio or ฿2M/WP rule. Staffing and capital follow the BOI-approved investment plan.
|
No company quotas.
Visa is based on your personal funds/investment (e.g. ฿600k for startups, ฿20M for investors) rather than local headcount or company capital.
|
| Application speed |
Moderate.
Realistically 1–2 months from zero: embassy visa, company setup, WP, first 1-year extension.
|
Fast after BOI.
BOI promotion itself takes ~1–3 months; once approved, visa + WP can be processed in days via One-Stop.
|
Front-loaded.
Endorsement typically ~30 working days; actual visa issuance is quick. Expect 1–2 months total lead time.
|
| Duration & renewals |
1-year cycles.
90-day entry → 1-year extension; renewed annually with full compliance check and 90-day reporting every quarter.
|
Tied to BOI project.
Normally 1-year visa + WP renewed annually while BOI status is valid; promotions often run 3–8 years.
|
Up to 4 years straight.
Annual reporting instead of quarterly. On expiry you re-confirm that you still meet sector/role/income criteria.
|
| Key advantages |
Broad, predictable route.
Available to most industries with a clear, well-understood process. Fits traditional businesses that will build a Thai team anyway.
|
Ownership + incentives.
100% foreign ownership possible, no 4:1 burden, smoother visa/WP handling, and potential tax holidays / import duty relief.
|
Lifestyle & prestige.
Long validity, no work permit bureaucracy, strong family benefits, and reputational lift as a “vetted” high-value individual.
|
| Main drawbacks |
Heavy operational load.
4 Thais + ฿2M per foreigner is expensive for lean startups; frequent filings and annual renewals are unforgiving if you slip.
|
Not for everyone.
Front-loaded complexity; only for specific sectors and credible projects. Under-performing the BOI plan can cost you the promotion.
|
Narrow use-case.
Strict sector and income criteria; many “normal” SME models do not fit. No corporate tax/ownership perks by itself – it’s a personal visa, not a company regime.
|
As shown above, standard visas are accessible to any business but come with heavy local obligations, BOI streamlines hiring foreigners but is only for promoted projects, and SMART Visas offer individual entrepreneurs a fast-track if they are in the right field. Some founders even combine these pathways: e.g. start on a Smart S visa to avoid initial hiring pressure, then as the company grows, transition to a BOI promotion for expansion.
Common Pitfalls and How to Avoid Them
Setting up your work authorization is not a one-and-done task – it’s an ongoing compliance exercise. Many foreign founders hit snags that can derail their status. Here are common failure points and tips to avoid them:
- “Working” Too Soon or Outside Your Permit: Eagerness is natural when launching a startup, but do not start conducting any business in Thailand without your work permit being issued. Even activities like attending client meetings, signing contracts, or simply operating day-to-day can be considered “work”. Thailand is strict: working without a permit can lead to fines up to ฿100,000 or even imprisonment, and your company can be fined too. Also, don’t assume a director title alone covers you – you still need the permit. Solution: wait for the work permit before actively managing your company (you can do preparatory work abroad or as a tourist, but be cautious). If timing is tight, consider urgent options (a 15-day work authorization via WP-10 for truly urgent tasks, or using a professional employer organization temporarily). And once you have a permit, stick to the job description and employer on it – if you need to take on additional roles or a new venture, update your permit or get a new one.
- Not Maintaining the Thai Staff/Capital Ratio: For standard business visa holders, this is the #1 cause of extension denials. As a founder, you might hire four Thai employees initially, but if a few quit or you downsize, you fall out of compliance. Immigration will check your social security records and payroll at renewal – if you don’t have 4 active Thai staff, they can reject your extension on the spot. The capital requirement can bite you too – if you never fully paid up the intended ฿2 million, or you later transfer money out, reducing the capital, that’s an issue (paid-up capital is verified via company registration papers).
Tip: Always have a buffer – hire an extra Thai employee (5 instead of 4) if possible to safeguard against turnover.
- Ensure your company’s capital is properly filed and remains in the company accounts. Remember that social security filings must show at least 3 months of contributions before a first-year extension, so you should be employing Thais and contributing well in advance of your visa renewal date. Plan your hiring accordingly – e.g., if your visa renewal is in December, have all four Thai staff on payroll by, say, August or September to have 3+ months of SSO filings by renewal time.
- Ignoring Reporting and Administrative Deadlines: A surprisingly common pitfall is forgetting the 90-day immigration report. Every 90 days of continuous stay, you must file a simple address report (online or at immigration). If you miss the date, there’s a ฿2,000 fine. More seriously, forgetting to extend your visa or work permit on time can put you on overstay or leave you working illegally. Mark your calendar to renew at least 30 days before expiration (Smart Visa holders should re-endorse 60 days before expiry). If you do accidentally overstay, pay the fines promptly and do not work during that period. Always keep your work permit valid and updated; if you change your office location or job title, update the permit within 15 days. If you resign or shut down the company, officially cancel your work permit within 7 days to avoid penalties (and to free up your name for future permits). These administrative chores may seem minor, but non-compliance can accumulate fines or jeopardize future applications.
- Incomplete or Incorrect Documentation: Thai bureaucracy is detail-oriented. A missing document or an error in an application can cause rejection or delays. For example, forgetting to have the company’s seal and directors’ signatures on every page of copied documents, or not translating a foreign document to Thai, can lead to a refusal. Always follow official checklists to the letter. Provide exact documents as required – e.g., if they ask for a map to your office, draw one and include it (yes, it’s still often required!). If your company had no income yet, be prepared to explain and show evidence of ongoing activities (contracts, invoices, etc., or a letter explaining no revenue yet). For Smart Visas, double-check all forms are filled correctly and consistently; any discrepancy between what BOI endorses and what Immigration sees could cause issues at visa issuance. Pro tip: Work with a qualified visa agent or legal advisor for the first time, or at least have them review your application. They can catch small mistakes and navigate unwritten rules, like how some immigration offices may interpret guidelines.
- Neglecting Tax and Corporate Compliance: Work permit renewals, especially for the standard route, require proof that your company is in good standing with Thai authorities. Immigration typically asks for your latest balance sheet and financial statements (audited), a receipt of corporate income tax filing (Por Ngor Dor 50), and VAT filings (Por Por 30) if applicable. If you haven’t filed your taxes or your audit is overdue, this raises red flags. In worst cases, Immigration may defer your extension until you produce the documents, or if filings are missing entirely, deny the extension. Additionally, companies meeting certain thresholds must be registered for VAT (Value Added Tax) – if your business crossed ฿1.8M annual revenue and you didn’t register for VAT, that’s non-compliance.
Advice: Use an accountant to keep your books in order from day one. Even if your startup had little income, you must file nil returns on time.
- By renewal time, have the official tax receipts and financial reports ready. Not only will this satisfy visa requirements, it also demonstrates to authorities that your business is active and responsible. Remember, Thai agencies (Labour, Immigration, Revenue) can cross-check information. A clean compliance record in one area helps in others.
- Misusing the Wrong Visa Type: Occasionally, foreigners try to shortcut by using visas not meant for working – e.g., running a business on a tourist visa or an Education visa. This is risky and illegal. A new one is the LTR (Long-Term Resident) visa for “Wealthy” or “Skilled” foreigners, which some founders think can replace a work permit. Note: the LTR for professionals does include work permission (digital work permit) and exempts the 4 Thai rule, but it targets high-salary earners or investors (and requires $80k/year income or large investments). It may not fit a bootstrapping startup founder. If you do qualify (e.g., your own overseas business pays you a high salary), LTR could be a solution – but ensure you truly meet the criteria and understand the tax implications (LTR offers tax perks on foreign income) before opting in. In general, don’t try to work under the wrong visa – it’s not worth the legal trouble. Choose one of the proper pathways we discussed (Non-B, BOI, Smart, or LTR if applicable).
- Penalties and Enforcement: Finally, be aware that Thai authorities do enforce these rules. There are labor inspections where officers might visit your office to verify Thai/foreign employee counts and that work permits are present (ensure you keep the original work permit at the workplace and your passport or a copy handy). Immigration has become stricter with the advent of computerized systems – overstays, missing 90-day reports, etc., are all logged. The good news is if you diligently comply, renewals tend to be routine. And if you ever find yourself in a gray area (like needing to do an activity not covered by your permit), consult with a legal professional or BOI officer (if BOI/SMART) to find a proper solution rather than bending the rules.
Foreign founders have multiple avenues to legally run a business in Thailand – each with its own trade-offs. The standard route demands significant local investment but is widely used. The BOI route offers flexibility and speed if your venture qualifies for promotion. The SMART Visa is a highly attractive option for tech entrepreneurs, granting freedom and benefits in exchange for stricter upfront vetting. Whichever path you choose, staying organized and compliant is the secret to long-term success. Secure the right visa and work permit, follow the rules, and you’ll be free to focus on growing your business in the Kingdom.
Work Permit for Founders & Directors?
Get “Eligibility + Company Reality” Aligned.
A work permit isn’t just paperwork. Your role, company structure, and ongoing compliance trail must line up — or renewals turn into a negotiation.
- Role & scope: director/founder job description that matches what the company actually does
- Company readiness: capital, office footprint, payroll/SSO, tax filings, operational evidence
- Renewal-proof setup: avoid “fix it later” gaps that surface at extension time
Start with city + how many work permits you need so we route you to the right specialist fast.
Next: Business Visas & Immigration for Foreign Entrepreneurs in Thailand – What foreign entrepreneurs need to know about securing the proper visas, obtaining work permits for foreign personnel, and understanding Thai employment requirements to operate legally in Thailand.