don't rely on deployments list ordering