sketched out dispatch table for message handling