add in REINSTALL and make reusable (bug 857694)