get correct config