updated deployment flow