remove dependency on config