improved install scipt