implemented undeployment, close #6