made installer logic better