corrected code to query actual chunking and collective output mode
improved code to set striping and buffering