add other versions of passCapture
add 7-parameter version of asStruct