migrate MACHINES to object that stores unique ids