ported to new DeityAPI