adding visitor to handle incoming messages