add protection against unexpected configs