fix all manner of wrongness with port buffer offsets