add support for slack weighting