Many iPhones on iOS 13+ and many Android phones with Bluetooth HID support can use a Bluetooth keyboard; if your phone pairs with headphones, it will often also pair with a keyboard. Wasted time after a bad setup is common: failed pairing, dropped keys, wrong layouts, or apps that accept taps but ignore hardware typing. This guide starts with phone compatibility, then moves to the shortest fixes for pairing failures, disconnects, wrong key mapping, and missing keyboard input on iPhone and Android.
Which phones work with Bluetooth keyboards?
What “works” actually means after pairing
A phone can pair with a keyboard and still fail in daily use. Real support means several separate things work: pairing, text entry, shortcut handling, modifier keys, language switching, and app-level input. A device that only checks the first box is why many people assume the keyboard is broken.
Most current iPhones and Android phones handle basic typing over the standard Bluetooth HID keyboard profile. That part is easy. Trouble usually starts with brand UI changes, custom app editors, accessibility features that remap input, and keyboard layouts that do not match the phone language setting.
iPhone support by iOS generation
iPhone support is usually solid on modern iOS versions, especially for plain text entry in Messages, Notes, Mail, Safari fields, and many productivity apps. The Bluetooth path is simple: open Settings, tap Bluetooth, wait for the keyboard name under Other Devices, then tap it while the keyboard LED is still blinking in pairing mode.
Where iPhone support breaks is less about pairing and more about behavior after pairing. Some apps ignore external keyboard input in custom search bars or game chat fields. Accessibility features can also change expected behavior. AssistiveTouch and Switch Control may send keys toward navigation instead of text entry, and many users read that as a dead keyboard.
On iPhone, check accessibility settings early if pairing succeeded but typing does not. Settings related to external keyboards, Full Keyboard Access, AssistiveTouch, and Switch Control can all change what key presses do. Password fields and secure prompts can also act differently from normal text boxes.
Android support by version and brand UI
Android is broader and messier. Pixel and close-to-stock Android phones usually handle Bluetooth keyboards well for text entry and basic shortcuts. Samsung Galaxy phones also tend to do well, though Samsung’s keyboard settings and DeX-related behavior can add extra steps. Xiaomi, OnePlus, Motorola, and older Android builds can vary more by software version than by hardware.
The key Android path is usually Settings > Connected devices or Bluetooth, then pair the keyboard. After that, text input may still depend on the active IME, usually Gboard or a manufacturer keyboard. Some phones also show permission prompts, battery controls, or physical keyboard settings only after the first successful connection.
Older Android versions are more likely to pair yet mishandle shortcuts, modifier keys, or language switching. That does not always mean the keyboard is incompatible. It can mean the phone sees it as a keyboard but the current input method does not map it correctly.
Brand-by-brand expectations
- iPhone: usually strong for pairing and basic typing; watch accessibility settings, secure fields, and app-specific editors.
- Pixel / stock Android: usually the cleanest Android experience; Gboard interaction is often predictable.
- Samsung Galaxy: good support overall; check Samsung Keyboard, physical keyboard settings, and any DeX-related prompts.
- Xiaomi / MIUI / HyperOS: pairing can be fine, but aggressive battery rules and UI changes can affect reconnect behavior.
- OnePlus / OxygenOS: usually good basic support, but keyboard layout and shortcut handling can vary by OS version.
- Motorola: often good for plain typing; deeper keyboard controls can be sparse.
- Older Android versions: higher chance of pairing-only success with uneven text entry or modifier support.
Compatibility and fix matrix
How to read the matrix
The fastest column is the first fix worth trying because it gives the best time-to-test. The deeper fix is for cases where the keyboard still fails after the quick check. The owner column points to the most likely side of the problem: keyboard, phone, or app.
| Phone type | Likely failure symptom | Fastest fix | Deeper fix | Issue owner |
|---|---|---|---|---|
| iPhone on iOS 13+ | Pairs, but no text appears in one app | Test in Notes and Safari first | Check app editor limits, Full Keyboard Access, AssistiveTouch, and Switch Control | App or accessibility setting |
| iPhone on older iOS build | Pairs, then behaves oddly with shortcuts or modifiers | Open Settings > Bluetooth, tap the i next to the keyboard, choose Forget This Device, then pair it again and re-enter the passkey on the keyboard if iPhone asks | Update iOS if available, then review keyboard layout and external keyboard settings | Phone side |
| Pixel / stock Android | Pairs, but typing does nothing | Switch to Gboard and test in Messages | Review physical keyboard and language settings, then clear the app-specific fault | IME or app side |
| Samsung Galaxy | Connects, then disconnects after short idle periods | Plug the keyboard into USB-C or Lightning power until full, or install a fresh AA or AAA set if the model uses removable cells | Clean old Bluetooth entries, review battery controls, and disable accidental host switching on the keyboard | Keyboard or phone side |
| Xiaomi / MIUI / HyperOS | Pairs once, then will not reconnect automatically | Open Bluetooth device list and reconnect manually | Remove device, re-pair, and inspect battery saver or background restrictions | Phone side |
| OnePlus / OxygenOS | Wrong punctuation or symbol keys | Change physical keyboard layout | Match US, ISO, or JIS layout to the hardware and active language | Phone setting |
| Motorola | Pairs only after several tries | Reset keyboard and enter pairing mode again | Clear stale pairings on the keyboard and phone, then retry close to the phone | Keyboard side |
| Older Android versions | Basic letters work, shortcut keys do not | Use plain typing only in a known-good app | Try another IME or newer OS build if the phone supports it | Phone or app side |
| Any phone with multi-device keyboard | Random disconnects or connection goes to another device | Lock the keyboard to the correct device channel | Delete unused pairings on the keyboard and disable nearby paired hosts | Keyboard side |
| Any phone with low keyboard battery | Pairing loop, missed keys, lag, or dropouts | Charge or replace battery | Test again after full charge and inspect power-save sleep behavior | Keyboard side |
How do I connect a Bluetooth keyboard to my phone?
Put the keyboard in pairing mode, open the phone’s Bluetooth menu, and select the keyboard from the device list. On iPhone, use Settings > Bluetooth. On Android, use Settings > Bluetooth or Connected devices. If a PIN appears, type it on the keyboard and press Enter.
Pairing steps for iPhone
- Charge the keyboard or fit fresh batteries before starting.
- Put the keyboard into pairing or discoverable mode. Many keyboards show a fast-blinking LED while discoverable.
- On iPhone, open Settings > Bluetooth.
- Wait for the keyboard name to appear under available devices.
- Tap the keyboard name.
- If iPhone shows a passkey, type that code on the keyboard itself, then press Enter.
- Open Notes and test letters, Space, Delete, and Enter.
If the keyboard appears as connected but no text arrives, test in Notes before changing anything else. Use that step first because it separates phone-wide input problems from app-only failures in seconds.
Pairing steps for Android phones
- Confirm the keyboard is charged or has fresh batteries.
- Put it into pairing mode and look for the LED blink pattern that indicates discoverable status.
- On Android, open Settings > Bluetooth or Settings > Connected devices.
- Scan for devices if the list does not refresh by itself.
- Select the keyboard from the device list.
- If Android shows a pairing code, type it on the keyboard and press Enter.
- Test in Messages, Keep, or another plain text field.
On some Android phones, extra options for a physical keyboard only appear after the first successful pair. That is usually where layout, language, and shortcut behavior get adjusted.
How to verify pairing mode and discoverable status
Most Bluetooth keyboards do not stay discoverable forever. Many enter discoverable mode only after a specific key hold, a channel button press, or a power-on sequence. The LED usually blinks while discoverable, then slows or stops once paired.
If the keyboard was paired to another phone, tablet, or computer earlier, it may reconnect there instead of entering discoverable mode. That is common on multi-device models. Switch the hardware channel or clear that older pairing first.
Re-pairing after a reset is different from a normal reconnect. A reset clears the keyboard’s stored hosts. After that, the phone will usually need a full new pairing, not a tap-to-reconnect from a stale entry.
What to do when the keyboard asks for a PIN or passkey
Use the keyboard to type the code shown on the phone, then press Enter. Do not type the PIN on the phone screen unless the prompt says to. If the code keeps failing, remove the old phone entry from Bluetooth settings, put the keyboard back into pairing mode with the LED blinking again, and retry from a fresh device listing.
Using a Bluetooth keyboard with a PC
If you want to use a Bluetooth keyboard on a computer, the key first step is figuring out whether the PC already has Bluetooth or needs a USB adapter. The supporting guide on PC Bluetooth setup explains the quickest path for both cases: turn on Bluetooth if it’s built in, or add an adapter if it isn’t, then put the keyboard in pairing mode and connect it through Windows settings.
It also matters because a failed connection is not always a broken keyboard. The article shows how to separate missing Bluetooth, driver issues, low batteries, and keyboard-side faults so you can fix the right problem without wasting time.
How to set up a Microsoft Bluetooth keyboard
If you are pairing a Microsoft Bluetooth keyboard for the first time, the key steps are simple: turn it on, put it into pairing mode, and add it from Windows Bluetooth settings. This Microsoft Bluetooth keyboard setup guide walks through the exact Windows path and shows what to do if the keyboard already appears in the device list but still will not connect.
That matters because most failures come from a missed pairing step, a drained battery, or an old Windows bonding record that needs to be removed before reconnecting. The article also covers model-specific notes and a practical troubleshooting table, so you can get past common setup blocks without guessing.
Can I use one Bluetooth keyboard with iPhone and Android?
Yes, one Bluetooth keyboard can usually work with both iPhone and Android, but each phone needs its own pairing record and the keyboard may need manual device-channel switching. Even when connection works on both, shortcuts, modifier keys, language switching, and symbol mapping can behave differently.
Multi-device keyboards and channel switching
Many compact keyboards store several hosts. That is useful, but it creates false faults. If the keyboard jumps to another saved device, the phone looks disconnected even though the keyboard is working exactly as designed.
When troubleshooting, reduce variables. Keep only the target phone nearby, switch to the correct channel, and confirm the keyboard is not still attached to a tablet or laptop.
Re-pairing rules when swapping between phones
Swapping between iPhone and Android usually does not require a reset if the keyboard supports multiple saved hosts. If it supports only one host, pairing to the second phone may overwrite the first. In that case, a return to the first phone needs a fresh pairing cycle.
Shortcut and modifier differences across iOS and Android
iPhone and Android do not treat every key the same way. Command-style shortcuts, Search keys, globe keys, and Alt or Option mappings may differ. Enter may submit a form in one app, add a line break in another, and do nothing in a custom chat field.
Share One Bluetooth Keyboard Between Two Computers
If you want the same keyboard on two computers, the key question is whether it can save more than one pairing and switch between them without starting over. The supporting guide explains how to tell the difference, how switching usually works on multi-device models, and what to expect if your keyboard only remembers one device at a time. That matters because a one-slot keyboard often forces repeated pairing, while a multi-device model can make moving between a laptop and desktop much faster. See the Bluetooth keyboard setup guide for the exact setup and fallback options.
Why is my Bluetooth keyboard not working on my phone?
A Bluetooth keyboard usually fails for one of four reasons: it never entered true pairing mode, it paired to the wrong host, the phone accepted the connection but the current app or input method is blocking text, or the layout and accessibility settings are remapping keys unexpectedly.
Pairs but will not type
This is the most common failure case. First, test in a plain text app. On iPhone, use Notes. On Android, use Messages or Keep with Gboard active. If letters work there, the keyboard is fine and the fault is likely app-specific.
Password fields, browser address bars, remote desktop clients, and custom editors often behave differently from normal text fields. Some accept only limited keys. Some swallow shortcuts. Some require a tap in the text box before external input starts.
Will not pair at all
Start with pairing mode, not restarts. If the keyboard LED is not blinking in its discoverable pattern, the phone cannot find it. Low battery can also cause a pairing loop where the keyboard appears briefly, then vanishes.
Version fear is often overstated. Many Bluetooth keyboards use the standard HID profile, so basic keyboard pairing often works across older and newer Bluetooth versions. Problems are more often caused by stale pairings, wrong channel selection, or the keyboard connecting to another saved device first.
Connects, then drops or sleeps
That points first to power, second to multi-device confusion, third to the phone’s Bluetooth history. A keyboard with a weak battery may connect, accept a few keys, then disappear. Some keyboards also sleep aggressively and reconnect slowly enough that users think they are disconnected.
Some keys work, others do the wrong thing
This is usually a layout issue, not a broken key switch. US, ISO, and JIS layouts place punctuation, brackets, and modifier keys differently. If the phone assumes the wrong layout, the hardware is fine but the symbols are wrong.
On Android, the current language and IME matter too. Gboard may be set to one language while the physical keyboard layout is set to another. That mismatch often produces wrong punctuation, swapped symbols, or dead shortcuts.
Why does my phone keep disconnecting from my Bluetooth keyboard?
Random disconnects usually come from low keyboard battery, a keyboard that is switching to another saved device, a crowded Bluetooth history on the phone, nearby interference, or software bugs. The fastest path is to test those in that order before trying phone restarts or deeper resets.
Low battery, sleep timers, and power-saving behavior
Low battery symptoms are specific: pairing loops, lag before letters appear, repeated reconnect sounds, and missed keys after idle time. Recharge first or replace the cells first. That check takes minutes and rules out a large share of false phone-side faults.
Some keyboards also sleep very quickly to save power. That is normal until wake-up gets unreliable. If the first few keys after idle vanish, the keyboard may be waking rather than disconnecting.
Nearby interference and crowded Bluetooth lists
If the phone has a long device list, cleanup can help reconnect reliability. Remove old keyboards you no longer use. On some phones, stale entries confuse the reconnect flow or keep the phone searching for the wrong record.
Nearby interference matters most when the keyboard is already weak on battery or on the edge of range. Testing close to the phone is worthwhile only after battery and saved-host checks.
Multi-device confusion and accidental host switching
This is common on compact keyboards with three host buttons. A stray key press can move the keyboard to another channel. The phone then shows a disconnect that looks random but is really a device-switch event. Lock it to the intended host and remove unused pairings if the problem repeats.
OS bugs, firmware issues, and when to update
If the keyboard works on another phone but keeps dropping on one specific handset, check for pending system updates. That is a late step, not the first move. Firmware updates for keyboards exist too, though many low-cost models offer no user update path.
Why a Bluetooth keyboard repeats letters
If your Bluetooth keyboard keeps typing the same letter over and over, the fastest way to fix it is to separate software causes from hardware faults. The supporting guide walks through that order: check keyboard repeat settings first, then Bluetooth stability and pairing issues, then battery and interference problems, and finally key bounce or a failing switch if the problem happens even offline. That matters because repeated letters can look like a simple connection glitch when the real issue is a sticky key or worn-out switch.
Use this bluetooth keyboard repeats guide to narrow the cause quickly and avoid wasting time on the wrong fix.
When Windows 11 Stops Seeing Your Bluetooth Keyboard After a Driver Reinstall
If a keyboard vanishes after you reinstall Bluetooth drivers in Windows 11, the fix is usually not the keyboard itself. The supporting guide walks through the most likely failure points in order: power and pairing state, Bluetooth Support Service, adapter removal and re-pairing, and the correct OEM driver to reinstall. That sequence matters because Windows can show Bluetooth as active while still failing to expose the keyboard for pairing.
Use the bluetooth keyboard guide to narrow the problem quickly and avoid random resets. It also covers what to check when Bluetooth disappears from Settings, plus the common mistakes that make a healthy adapter look broken.
What should I do if Bluetooth keyboard keys are not working?
When keys fail, separate the symptom first: dead keys in every app, wrong characters, or no text in one app only. That split tells you whether to check battery and hardware, layout and language settings, or the app’s own input behavior before touching phone-wide Bluetooth settings.
Layout mismatches: US, ISO, and JIS
If punctuation is wrong, the physical layout and phone layout probably do not match. Common examples are swapped quote keys, wrong slash positions, or brackets appearing where another symbol is expected.
Match the phone’s physical keyboard setting to the keyboard hardware: US, ISO, or JIS. If the keyboard has an L-shaped Enter key or a short left Shift, it often is not US ANSI style. Picking the right layout usually fixes “broken” punctuation immediately.
Language and IME issues on Android
Android phones may use one language for the on-screen keyboard and another for the physical keyboard. Gboard and other IMEs can also keep shortcut and symbol behavior tied to the active language. If letters are fine but symbols are wrong, inspect the physical keyboard language before re-pairing.
Modifier keys, symbols, and shortcut remapping
Alt, Option, Command-like keys, Search keys, and globe keys are often the least portable keys across phones. If Ctrl shortcuts work but Alt-based symbols do not, the issue is usually mapping, not Bluetooth connection quality.
On iPhone, accessibility features may intercept modifiers for navigation. On Android, brand skins may reserve key combinations for system actions. Test basic letters and punctuation first, then test modifiers in Notes or another simple editor.
Apps that block or mishandle external keyboard input
Some apps pair fine with a keyboard yet ignore text. Browser address bars, messaging apps with custom compose fields, password prompts, game overlays, and remote desktop apps are frequent offenders. When a keyboard works in Notes but not a target app, stop troubleshooting Bluetooth. The connection is already proven.
Fixing Bluetooth Keyboard Connection Issues on a Mac Mini
A Mac mini requires a different troubleshooting path than phones or laptops because the keyboard often appears paired in Bluetooth settings but still refuses to type. The fix depends entirely on whether you are facing an initial pairing failure, a reconnection drop, or blocked input after a successful connection.
Our guide to Mac mini Bluetooth keyboards breaks down each symptom and maps it to the correct solution, including when to use a USB cable first, how macOS settings silently block Bluetooth input, and why resetting a keyboard that is already paired wastes time. Following this symptom-first matrix prevents unnecessary resets and gets your desktop typing again faster.
Fixing Bluetooth Keyboard Connection Problems
If a Bluetooth keyboard won’t connect, the fastest fix depends on the failure mode. This guide breaks the problem into three common cases: the keyboard never appears in Bluetooth settings, it pairs but won’t type, or it connects and then drops again. That matters because each symptom points to a different next step, from re-pairing and restarting Bluetooth to replacing batteries or turning off power-saving sleep.
Use this Bluetooth keyboard guide to narrow the cause quickly and avoid wasting time on the wrong reset. It’s especially useful if you need the keyboard working at sign-in on Windows or you want the shortest path back to a stable connection.
Fixing Bluetooth keyboard input errors: layouts, languages, and remapping
Bluetooth keyboards can produce wrong characters, broken shortcuts, or unintended scripts if their layout, language, or key remapping settings are misconfigured. This guide clarifies which setting controls which behavior—keyboard layout affects character output, language settings govern spellcheck and input rules, and remapping alters key functions—and provides platform-specific steps for iPadOS, macOS, Windows 11, and Android. Use the decision table to diagnose why symbols or shortcuts fail, and avoid common pitfalls like mixing language and layout settings.
For step-by-step instructions on adjusting these settings across devices, see Bluetooth keyboard settings adjustments.
Check Whether a Logitech K350 Can Pair by Bluetooth
If you are troubleshooting a Logitech K350, the first step is to verify its connection method. The K350 is usually a receiver-based wireless keyboard, which means it connects through the USB dongle that came with it rather than through Bluetooth. That distinction matters because Bluetooth troubleshooting will not help if the keyboard is designed to use a receiver.
The Logitech K350 pairing guide explains how to confirm the model, identify the right setup path, and avoid common mistakes like searching for a Bluetooth pairing mode that the keyboard does not have.
Diagnose by the pattern of failed keys
The fastest way to fix missing keystrokes is to match the symptom to the likely cause. If one or two keys fail everywhere, the problem is often a dirty switch or hardware damage. If several keys fail only over Bluetooth, battery, pairing, interference, or OS settings are more likely than a bad keyboard. The bluetooth keyboard keys guide breaks that pattern down for Windows, Mac, iPad, and Android, then points you to the quickest fix for each case.
That matters because it keeps you from resetting, reconnecting, or replacing the keyboard before you know what is actually broken. Use the symptom match first, then apply the right fix instead of troubleshooting blindly.
How do I reset a Bluetooth keyboard?
Reset the keyboard only when it will not enter pairing mode, keeps reconnecting to the wrong host, or fails on multiple phones. That is different from forgetting the device on the phone, which removes only the phone’s saved record. Phone Bluetooth or network resets are much later steps.
Keyboard reset vs forget-device
Forget device clears the phone’s record of that keyboard. Keyboard reset clears the keyboard’s saved hosts or internal pairing memory. They solve different problems.
If the keyboard shows up in the phone list but pairing fails, forgetting the device is often enough. On iPhone, that means Settings > Bluetooth > i next to the keyboard > Forget This Device. On Android, open the saved Bluetooth device, tap Unpair or Forget, then start a fresh scan. If the keyboard refuses to become discoverable or keeps jumping back to another host, reset the keyboard itself.
When to clear phone Bluetooth or network settings
Phone-side resets are for stubborn cases where several Bluetooth devices are acting oddly, not only the keyboard. They are slower, more disruptive, and can erase working accessories. Use them only after testing the keyboard on another phone or confirming the same phone also fails with another keyboard.
How to rebuild the connection without losing working settings
- Charge the keyboard fully or install fresh batteries.
- Forget the keyboard on the phone.
- Power the keyboard off, then back on.
- Enter pairing mode again and confirm the LED blink pattern.
- Pair from the Bluetooth menu.
- Test in a plain text app before changing layout or accessibility settings.
- If symbol mapping is wrong, fix the layout next.
- If the keyboard still misbehaves across phones, perform the keyboard’s own reset procedure.
How do I type on my phone with a Bluetooth keyboard?
Once paired, typing should work in normal text fields right away, but behavior varies by app. Enter may send a message or insert a line break, shortcuts are uneven, emoji support is limited, and dictation can still be useful when an app accepts voice input better than hardware keys.
Enter behavior, text navigation, and shortcut support
Arrow keys, Backspace, Space, and plain letters are the most reliable functions. Text navigation usually works well in note and mail apps. Shortcut support is less consistent. Some apps support familiar commands, while others ignore them or assign different meanings.
Emoji limitations and dictation fallback
Emoji entry from a hardware keyboard varies by app and OS. If emoji or speech input matters, the on-screen keyboard may still need to stay available. That is normal. A Bluetooth keyboard does not replace every software input feature.
Accessibility and advanced setup that change keyboard behavior
AssistiveTouch and external keyboard behavior on iPhone
AssistiveTouch can change how iPhone treats external input, especially when a user also works with pointing-device features. Keyboard presses may trigger navigation or focus movement instead of plain text if Full Keyboard Access or related controls are active. Check those settings before blaming the keyboard.
Switch Control and navigation-focused input
Switch Control can reroute key presses toward interface control rather than character entry. For accessibility workflows, that may be the goal. For regular typing, it can make a healthy keyboard look unusable. If the device is scanning items on screen after each key press, inspect Switch Control first.
Dictation fallback and mixed keyboard-voice workflows
Some users need both hardware typing and voice input. That is especially useful when an app accepts text poorly from external keyboards or when punctuation mapping is temporarily wrong. Leaving dictation available is often faster than forcing every app into a keyboard-only setup.
Productivity shortcuts, text navigation, and app caveats
External keyboard support on phones is best viewed as layered support, not a universal desktop mode. Plain typing often works across the system. Advanced shortcuts depend on the app. Remote desktop apps, browser editors, messaging tools, and password managers are the first places where behavior splits.
For Mac-based cross-device control, KeyPad turns a Mac into a universal Bluetooth keyboard, mouse, and media remote control. It claims support for smartphones, tablets, TVs, and Raspberry Pi devices, says it can maintain connections with multiple devices at once, includes both keyboard and mouse functionality, and supports multiple keyboard layouts. Setup includes making the device discoverable, then pairing over Bluetooth. It is listed as available only for Mac, carries an App Store age rating of 4+ years, and its app size is 374.9 KB.
Triage Steps for Intermittent Connection Losses
When a keyboard repeatedly drops, the issue usually stems from host power settings, battery levels, or radio interference. Our bluetooth disconnect guide breaks down these three primary causes, helping you distinguish between software glitches and hardware faults. It provides specific troubleshooting paths for Windows, Mac, and Android environments, explaining why a weak cell often mimics system errors. By following the structured triage table, you can quickly identify if the problem lies with your specific device's sleep behavior or external wireless congestion.
Resolving Win and Fn Lock Interference
When your Bluetooth keyboard fails to toggle Win Lock or Fn Lock, the issue rarely stems from the connection itself. Instead, the problem usually traces back to hardware limitations, Windows intercepting specific shortcuts, or driver misinterpretations of key states. Identifying the correct root cause prevents you from wasting time on irrelevant resets or leaving function keys stuck in an unintended mode.
This breakdown details a three-way checklist to isolate the fault between the device capabilities and the operating system. By examining specific settings on Windows 10 and 11, you can determine if the keyboard supports these locks and configure the system to stop disabling essential keys, ensuring reliable input without permanent workarounds. See the Win Lock troubleshooting guide for step-by-step diagnostic steps and configuration fixes.