add support for flash messages