add ability to check for minimum number of messages in a queue