simplify configs code