the weighting thing needs a bugfix