adapting deploy task to new DeployClient