move some exceptions around
move invalid provider exception