remove dependency on config constant