use correct config function