added custom type and function for Messages
added slack notifier support