change MessageQueue check on keys