implement message queue with flickering test