implement registerMessage with increasing message number
all server processes share common last message number
more prettier print