integrated message logic, getting exception