common functions for finding and loading of configuration