rework the static setting [skip ci] [ci skip]