move common installer setup stuff to a
helper method