fixed max resources per processor to return a reosurce container instead of a int with resources not ints!(WTF was i thinking again!)