updated queue class to get a single message - will use the spout message pump so no need for infinite loop