refactor installer.