basic key stuff, plus misc.