move all device config into fw
tweaks for robustness