updated id-generator interface.