check function for cloud queues