use stub_const to avoid reset const warning