expands the logic on the install