fixed typo
added api for excluding flash messages