generate and deploy