so really we just have to replace all instances of `queueMsg` with a `write`