add some more utility stuff
convert some functions to inline functions
if we are running in fwlive, set the keyboard layout before
exitting the layout module.