messaging context setup