fixed the way configs are managed