testing effiency fix

replace strcopy with writing directly to payload