calculating offsets based on Config.id, not Config.container