added per-resource weightings