begin handling messages