changed to smarter install process

changed to smarter install process