implemented weighted scoring

yes, but this is broken in master too.