add some global mode class