FIX: whoops, barf on every fresh shell.
FIX: add necessary :mode function names