once the need for a human mediator is accepted, it is a short step to deifying the mediator. After all, it makes a certain amount of sense to expect the person acting as the bridge between humans and the divine to also be divine (or at least semidivine).

