moved unique id and bumping implementation into resource class