improved updated of deployment code