moved stream gobbler into payload class