fixing reinstall script