a few riemann config helper functions