enabled registering callbacks for messages