add flash messages; a few more misc tweaks