the old `addMsg` is too inaccurate so I just renamed it to this one