add a registrar which stores all messages
pass around ServerConfig