config utility function