adjust modulestate plugin