fixed max resources per processor to return a reosurce container instead of a int (WTF was i thinking)