improving the way server processes queued messages