simplified server and client flash messages. much more elegant now