fixing invoke_callback for CG response format