add circular dependecy check on config