refactored install functions to make more sense.