added defective code to query actual chunking and collective output mode