add depth to config to prevent circular