added resource inventory for units