wrote a message queue processor and cleaned up a tiny bit