solve the deployment problem