added reinstallation feature