improved check during installation