added some fancy stuff here for single transaction chunked responses