fixes #33
add type for flash messages