fixed broken installation routine