finished deploy and added undeploy