improve installation check