a bit stronger typing on message ids