remove null check on config (it should never be null)