cap and deploy