improve configs code format