refactors the installer